const useUserStore = defineStore('User', {
    state: () => ({
        token: ''
    }),
    actions: {
        setToken(token: string) {
            this.token = useCookie('X-Auth-Token').value as string
        },

        getToken() {
            return this.token
        },

        clearToken() {
            const token = useCookie('X-Auth-Token')
            token.value = null
        }
    }


})











export {
    useUserStore
}